package com.lin.server;

import com.lin.dataobject.Product;
import com.lin.dataobject.ProductAttributeValue;
import com.lin.dto.NewProductDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by Administrator on 2017-10-20.
 */
public interface ProductService {

    Product findOne(String id);

    List<Product> findAll(String id,String name,String category,String startTime, String endTime);

    Page<Product> findAll(String id, String name, String category, String startTime, String endTime, Pageable pageable);

    Product save(Product product);

    void del(String productId);

    Long getSize(String id,String name,String category,String startTime, String endTime);

    NewProductDTO save(NewProductDTO newProductDTO);

    List<ProductAttributeValue> findAttributeByProduct(String ProductId);

    NewProductDTO update(NewProductDTO newProductDTO);
}
